#coding:utf8
import sys
reload(sys)
sys.setdefaultencoding('utf8')

#mysql info
db_info = {
    'host' : '211.166.22.190',
    'port' : 3306,
    'user' : 'bawang',
    'passwd' : 'bawang_pass',
    'db' : 'bawang',
    'charset' : 'utf8',
}

#redis info
redis_info = {
    'host' : '211.166.22.190',
    'port' : 6379,
    'db': 0,
    'password' : 'zuoloveyou',
    'encoding' : 'utf-8'
}

#juhe api key [url key]
juhe_api_key = {
    '12306' : 
        ['http://apis.juhe.cn/train/s','0d664538f522bcb744fc0457d0992489'],
    'webscan' : 
        ['http://apis.juhe.cn/webscan','7b35757bdd5da1e5f2bace6a3b1bba2c'],
    'postcode' : 
        ['http://v.juhe.cn/postcode/query','cf0f6e5be4c99d7b0cc83a2452b89a42'],
    'ip' : 
        ['http://apis.juhe.cn/ip/ip2addr','1999ea765ad08cb95b6cc0129544b90a'],
    'question' :
        ['http://op.juhe.cn/robot/index','978f281744b2cda30642dbbaf3eb8349'],
    'small' :
        ['http://japi.juhe.cn/joke/content/list.from','7947f711377da1612b1a587f0321a5fb'],
    'idcard' : 
        ['http://apis.juhe.cn/idcard/index','7fa264c47af134c52f5099924681b99d'],
    'phone' : 
        ['http://apis.juhe.cn/mobile/get','553309f6404564bb832992b08c4a7851']
}

#smsbao api info
smsbao_api_key = {
    'url' : 'http://api.smsbao.com/sms',
    'user' : 'zwhset',
    'passwd' : '8ab497874b7e7afbb02e2f0441696f3b'
}

#uploads local path
upath = './uploads'

#uploads remote path 目录后加/
rupath = '/tmp/'

#downloads path
downpath = './downloads'
